<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver ADS1118: src/driver_ads1118.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ADS1118 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('driver__ads1118_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">driver_ads1118.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>driver ads1118 header file  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
</div>
<p><a href="driver__ads1118_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structads1118__handle__s.html">ads1118_handle_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 handle structure definition  <a href="structads1118__handle__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structads1118__info__s.html">ads1118_info_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 information structure definition  <a href="structads1118__info__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gacb394980f3f9754ca945049187c4ecbd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gacb394980f3f9754ca945049187c4ecbd">DRIVER_ADS1118_LINK_INIT</a>(HANDLE,  STRUCTURE)&#160;&#160;&#160;memset(HANDLE, 0, sizeof(STRUCTURE))</td></tr>
<tr class="memdesc:gacb394980f3f9754ca945049187c4ecbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize ads1118_handle_t structure  <a href="group__ads1118__link__driver.html#gacb394980f3f9754ca945049187c4ecbd">More...</a><br /></td></tr>
<tr class="separator:gacb394980f3f9754ca945049187c4ecbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73414315e8e80c055eebe3f0893b32df"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga73414315e8e80c055eebe3f0893b32df">DRIVER_ADS1118_LINK_SPI_INIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_init = FUC</td></tr>
<tr class="memdesc:ga73414315e8e80c055eebe3f0893b32df"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_init function  <a href="group__ads1118__link__driver.html#ga73414315e8e80c055eebe3f0893b32df">More...</a><br /></td></tr>
<tr class="separator:ga73414315e8e80c055eebe3f0893b32df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67761a9d83991ac0300082d47b64e163"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga67761a9d83991ac0300082d47b64e163">DRIVER_ADS1118_LINK_SPI_DEINIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_deinit = FUC</td></tr>
<tr class="memdesc:ga67761a9d83991ac0300082d47b64e163"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_deinit function  <a href="group__ads1118__link__driver.html#ga67761a9d83991ac0300082d47b64e163">More...</a><br /></td></tr>
<tr class="separator:ga67761a9d83991ac0300082d47b64e163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga9ea452e63bb6493a523b560f7c6d8d34">DRIVER_ADS1118_LINK_SPI_TRANSMIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_transmit = FUC</td></tr>
<tr class="memdesc:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_transmit function  <a href="group__ads1118__link__driver.html#ga9ea452e63bb6493a523b560f7c6d8d34">More...</a><br /></td></tr>
<tr class="separator:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa30464196d9f326f4b643919781121ce"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gaa30464196d9f326f4b643919781121ce">DRIVER_ADS1118_LINK_DELAY_MS</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;delay_ms = FUC</td></tr>
<tr class="memdesc:gaa30464196d9f326f4b643919781121ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">link delay_ms function  <a href="group__ads1118__link__driver.html#gaa30464196d9f326f4b643919781121ce">More...</a><br /></td></tr>
<tr class="separator:gaa30464196d9f326f4b643919781121ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaecf749cb7e7d8a129fa1256579677459"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gaecf749cb7e7d8a129fa1256579677459">DRIVER_ADS1118_LINK_DEBUG_PRINT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;debug_print = FUC</td></tr>
<tr class="memdesc:gaecf749cb7e7d8a129fa1256579677459"><td class="mdescLeft">&#160;</td><td class="mdescRight">link debug_print function  <a href="group__ads1118__link__driver.html#gaecf749cb7e7d8a129fa1256579677459">More...</a><br /></td></tr>
<tr class="separator:gaecf749cb7e7d8a129fa1256579677459"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaadad14ae0203b8cacb132a81dadefd9f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structads1118__handle__s.html">ads1118_handle_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a></td></tr>
<tr class="memdesc:gaadad14ae0203b8cacb132a81dadefd9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 handle structure definition  <a href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">More...</a><br /></td></tr>
<tr class="separator:gaadad14ae0203b8cacb132a81dadefd9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structads1118__info__s.html">ads1118_info_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a></td></tr>
<tr class="memdesc:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 information structure definition  <a href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">More...</a><br /></td></tr>
<tr class="separator:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga78f49a4380e81222e020fb730acc47f1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> { <a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a0632581684dbafc03a6d4d55ae4fcb6e">ADS1118_BOOL_TRUE</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga78f49a4380e81222e020fb730acc47f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 bool enumeration definition  <a href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">More...</a><br /></td></tr>
<tr class="separator:ga78f49a4380e81222e020fb730acc47f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad70180f192713d521c787e63030bd6e9">ADS1118_RANGE_4P096V</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbabd8448722b8bc8fa8a451723b1258144">ADS1118_RANGE_2P048V</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dba8a92d51c2cef6b3f95c4a71647d265ad">ADS1118_RANGE_1P024V</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbaad424621cf470a9a11fab9cb5b0d6de5">ADS1118_RANGE_0P512V</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dba5513613a4baca4b8d42f4939b619aa9c">ADS1118_RANGE_0P256V</a> = 0x05
<br />
 }</td></tr>
<tr class="memdesc:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 range enumeration definition  <a href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">More...</a><br /></td></tr>
<tr class="separator:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5dec9726414e0cf7c7b65894ce838f8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8ae56de8a9e54b295965f3e6d6a37b2f3a">ADS1118_RATE_8SPS</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a6668699dc8cc04acf7d1e07baa8d9edd">ADS1118_RATE_16SPS</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a6934052e5bd66fee04ed51656644e3ec">ADS1118_RATE_32SPS</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a01e81a3c6c5afcafbc7e727801f23617">ADS1118_RATE_64SPS</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8afc684d1815f829b624e3dcdd008d2324">ADS1118_RATE_250SPS</a> = 0x05
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8ab3406d4c5ad1eba23e6374b9e27394d4">ADS1118_RATE_475SPS</a> = 0x06
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a9b336c77a1f74d36ca4469e26e8ead55">ADS1118_RATE_860SPS</a> = 0x07
<br />
 }</td></tr>
<tr class="memdesc:gad5dec9726414e0cf7c7b65894ce838f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 channel rate enumeration definition  <a href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">More...</a><br /></td></tr>
<tr class="separator:gad5dec9726414e0cf7c7b65894ce838f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabafaa3825a93ff6b91ee46b52fd87985"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a58125163d98403f090c67e081975ff8c">ADS1118_CHANNEL_AIN0_AIN1</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a6ad610ba2237169d8f815190fc7fd635">ADS1118_CHANNEL_AIN0_AIN3</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985adfc3e9c067fccfb9568c4f36d56d29a2">ADS1118_CHANNEL_AIN1_AIN3</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a7d3758007a36985cd1a35c2e983923a8">ADS1118_CHANNEL_AIN2_AIN3</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a4c23449b464ca7e036c087cd6b54eb5e">ADS1118_CHANNEL_AIN0_GND</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985ac0aa314ff603ec793b90ff60cc0d3440">ADS1118_CHANNEL_AIN1_GND</a> = 0x05
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a31a3e2abc07afc5a3ade5e6ce71f0187">ADS1118_CHANNEL_AIN2_GND</a> = 0x06
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985ac55cc1d3e9c42d3a51513cb4ea5206fc">ADS1118_CHANNEL_AIN3_GND</a> = 0x07
<br />
 }</td></tr>
<tr class="memdesc:gabafaa3825a93ff6b91ee46b52fd87985"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 channel enumeration definition  <a href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">More...</a><br /></td></tr>
<tr class="separator:gabafaa3825a93ff6b91ee46b52fd87985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> { <a class="el" href="group__ads1118__basic__driver.html#gga6c9f083f2c394319c5a0ccfcad8f006daa427a34d39145d5d0d2a54bd1c76f950">ADS1118_MODE_ADC</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga6c9f083f2c394319c5a0ccfcad8f006da886ef96e7601af3ec517ec8234ffbac2">ADS1118_MODE_TEMPERATURE</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 mode enumeration definition  <a href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">More...</a><br /></td></tr>
<tr class="separator:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga55d6166a84901612e5928e627dce4f90"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga55d6166a84901612e5928e627dce4f90">ads1118_info</a> (<a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a> *info)</td></tr>
<tr class="memdesc:ga55d6166a84901612e5928e627dce4f90"><td class="mdescLeft">&#160;</td><td class="mdescRight">get chip's information  <a href="group__ads1118__basic__driver.html#ga55d6166a84901612e5928e627dce4f90">More...</a><br /></td></tr>
<tr class="separator:ga55d6166a84901612e5928e627dce4f90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9014301f3bc54491fa06584985344a1d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga9014301f3bc54491fa06584985344a1d">ads1118_init</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga9014301f3bc54491fa06584985344a1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the chip  <a href="group__ads1118__basic__driver.html#ga9014301f3bc54491fa06584985344a1d">More...</a><br /></td></tr>
<tr class="separator:ga9014301f3bc54491fa06584985344a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9b8aa851ba99b283ac4602782b223ee3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga9b8aa851ba99b283ac4602782b223ee3">ads1118_deinit</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga9b8aa851ba99b283ac4602782b223ee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">close the chip  <a href="group__ads1118__basic__driver.html#ga9b8aa851ba99b283ac4602782b223ee3">More...</a><br /></td></tr>
<tr class="separator:ga9b8aa851ba99b283ac4602782b223ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2188b115128959d6296d1aa337293532"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga2188b115128959d6296d1aa337293532">ads1118_single_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t *raw, float *v)</td></tr>
<tr class="memdesc:ga2188b115128959d6296d1aa337293532"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data from the chip once  <a href="group__ads1118__basic__driver.html#ga2188b115128959d6296d1aa337293532">More...</a><br /></td></tr>
<tr class="separator:ga2188b115128959d6296d1aa337293532"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73e33b761a30ee2d8a32e2683f501b21"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga73e33b761a30ee2d8a32e2683f501b21">ads1118_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t *raw, float *v)</td></tr>
<tr class="memdesc:ga73e33b761a30ee2d8a32e2683f501b21"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data from the chip continuously  <a href="group__ads1118__basic__driver.html#ga73e33b761a30ee2d8a32e2683f501b21">More...</a><br /></td></tr>
<tr class="separator:ga73e33b761a30ee2d8a32e2683f501b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad91adcee86fd324ce059c910fbbfc703"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gad91adcee86fd324ce059c910fbbfc703">ads1118_start_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gad91adcee86fd324ce059c910fbbfc703"><td class="mdescLeft">&#160;</td><td class="mdescRight">start the chip reading  <a href="group__ads1118__basic__driver.html#gad91adcee86fd324ce059c910fbbfc703">More...</a><br /></td></tr>
<tr class="separator:gad91adcee86fd324ce059c910fbbfc703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga0a91f6a7d2767ab92d793ac961d2d185">ads1118_stop_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="mdescLeft">&#160;</td><td class="mdescRight">stop the chip reading  <a href="group__ads1118__basic__driver.html#ga0a91f6a7d2767ab92d793ac961d2d185">More...</a><br /></td></tr>
<tr class="separator:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gabbc1c33e1c2509c10d965420a96a4aa6">ads1118_temperature_convert</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t raw, float *deg)</td></tr>
<tr class="memdesc:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">temperature convert  <a href="group__ads1118__basic__driver.html#gabbc1c33e1c2509c10d965420a96a4aa6">More...</a><br /></td></tr>
<tr class="separator:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga4f38861957ee1ce243bc3f185dab9fd2">ads1118_set_channel</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the adc channel  <a href="group__ads1118__basic__driver.html#ga4f38861957ee1ce243bc3f185dab9fd2">More...</a><br /></td></tr>
<tr class="separator:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga388bfe8d066866dcf2cbc90bf7c06cda">ads1118_get_channel</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> *channel)</td></tr>
<tr class="memdesc:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the adc channel  <a href="group__ads1118__basic__driver.html#ga388bfe8d066866dcf2cbc90bf7c06cda">More...</a><br /></td></tr>
<tr class="separator:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5144bbba8907fedd3957b609e2edd9d2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga5144bbba8907fedd3957b609e2edd9d2">ads1118_set_range</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> range)</td></tr>
<tr class="memdesc:ga5144bbba8907fedd3957b609e2edd9d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the adc range  <a href="group__ads1118__basic__driver.html#ga5144bbba8907fedd3957b609e2edd9d2">More...</a><br /></td></tr>
<tr class="separator:ga5144bbba8907fedd3957b609e2edd9d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e">ads1118_get_range</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> *range)</td></tr>
<tr class="memdesc:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the adc range  <a href="group__ads1118__basic__driver.html#gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e">More...</a><br /></td></tr>
<tr class="separator:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab57aaa419bd104ec5d343d4298df9d19"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gab57aaa419bd104ec5d343d4298df9d19">ads1118_set_rate</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> rate)</td></tr>
<tr class="memdesc:gab57aaa419bd104ec5d343d4298df9d19"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the sample rate  <a href="group__ads1118__basic__driver.html#gab57aaa419bd104ec5d343d4298df9d19">More...</a><br /></td></tr>
<tr class="separator:gab57aaa419bd104ec5d343d4298df9d19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gab69fea5d25d34c9fc84fb5c5a2ce9d94">ads1118_get_rate</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> *rate)</td></tr>
<tr class="memdesc:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the sample rate  <a href="group__ads1118__basic__driver.html#gab69fea5d25d34c9fc84fb5c5a2ce9d94">More...</a><br /></td></tr>
<tr class="separator:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gadcf796dd6f95d9cafe5b053b0a0a0988">ads1118_set_mode</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> mode)</td></tr>
<tr class="memdesc:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the chip mode  <a href="group__ads1118__basic__driver.html#gadcf796dd6f95d9cafe5b053b0a0a0988">More...</a><br /></td></tr>
<tr class="separator:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga893f59671b982d88474569cc2d096d1d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga893f59671b982d88474569cc2d096d1d">ads1118_get_mode</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> *mode)</td></tr>
<tr class="memdesc:ga893f59671b982d88474569cc2d096d1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the chip mode  <a href="group__ads1118__basic__driver.html#ga893f59671b982d88474569cc2d096d1d">More...</a><br /></td></tr>
<tr class="separator:ga893f59671b982d88474569cc2d096d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga911c4bebd479377d56dcd638f727cc63"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga911c4bebd479377d56dcd638f727cc63">ads1118_set_dout_pull_up</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga911c4bebd479377d56dcd638f727cc63"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable dout pull up  <a href="group__ads1118__basic__driver.html#ga911c4bebd479377d56dcd638f727cc63">More...</a><br /></td></tr>
<tr class="separator:ga911c4bebd479377d56dcd638f727cc63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gae038a0b1c2000b87f78ce4f3cbc0ca61">ads1118_get_dout_pull_up</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> *enable)</td></tr>
<tr class="memdesc:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="mdescLeft">&#160;</td><td class="mdescRight">get dout pull up status  <a href="group__ads1118__basic__driver.html#gae038a0b1c2000b87f78ce4f3cbc0ca61">More...</a><br /></td></tr>
<tr class="separator:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga952ff81c1d768c1717135d87edc99baf"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__extern__driver.html#ga952ff81c1d768c1717135d87edc99baf">ads1118_transmit</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, uint8_t *tx, uint8_t *rx, uint16_t len)</td></tr>
<tr class="memdesc:ga952ff81c1d768c1717135d87edc99baf"><td class="mdescLeft">&#160;</td><td class="mdescRight">chip transmit  <a href="group__ads1118__extern__driver.html#ga952ff81c1d768c1717135d87edc99baf">More...</a><br /></td></tr>
<tr class="separator:ga952ff81c1d768c1717135d87edc99baf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>driver ads1118 header file </p>
<p>Copyright (c) 2015 - present LibDriver All rights reserved</p>
<p>The MIT License (MIT)</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
<dl class="section version"><dt>Version</dt><dd>1.0.0 </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Shifeng Li </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2024-02-28</dd></dl>
<h3>history</h3>
<table class="doxtable">
<tr>
<th>Date </th><th>Version </th><th>Author </th><th>Description </th></tr>
<tr>
<td>2024/02/28 </td><td>1.0 </td><td>Shifeng Li </td><td>first upload </td></tr>
</table>

<p class="definition">Definition in file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="driver__ads1118_8h.html">driver_ads1118.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
